home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Tools
/
glimpse-2.1
/
index
/
Makefile.alpha
< prev
next >
Wrap
Makefile
|
1995-05-16
|
4KB
|
126 lines
# Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved.
# To compile for structured queries, make "all: Sall" and "STRUCTURED_QUERIES=1".
#STRUCTURED_QUERIES = 0
STRUCTURED_QUERIES = 1
#all: NOTSall
all: Sall
# Define DIRENT to be 1 when you don't have <sys/dir.h> else define it to be 0.
DIRENT = 1
# You might have to change this depending on your machine configuration.
CC = cc #gcc -traditional #cc
SHELL = /bin/sh
# YOU DON'T HAVE TO CHANGE ANYTHING BELOW THIS LINE
# The binaries will be made in ../bin/. and the agrep library is assumed to
# be in ../lib . You normally don't have to change them.
# NOTE: INDEXDIR can be a relative or absolute path name.
BINDIR = ../bin
AGREPDIR = ../agrep
INDEXDIR = ../index
TEMPLATEDIR = ../libtemplate
LIBAGREPDIR = ../lib
LIBTEMPLATEDIR = $(TEMPLATEDIR)/lib
LIBAGREP = agrep
LIBTEMPLATE = template
LIBUTIL = util
CFLAGS = -DDIRENT=$(DIRENT) -I$(AGREPDIR) -I$(TEMPLATEDIR)/include -O -Olimit 3000 #-g #-DBG_DEBUG=1 #-DUDI_DEBUG=1 #-p
PROG = glimpseindex
NOTSPROG = nots$(PROG)
CASTPROG = buildcast
NOTSCASTPROG = nots$(CASTPROG)
TEST = test
OBJS = region.o \
dir.o \
io.o\
build_in.o \
filetype.o \
simpletest.o\
getword.o \
memlook.o \
lib.o \
partition.o
Sall: $(CASTPROG) $(PROG)
NOTSall: $(NOTSCASTPROG) $(NOTSPROG)
#$(TEST): test.o $(LIBTEMPLATEDIR)/lib$(LIBTEMPLATE).a $(LIBTEMPLATEDIR)/lib$(LIBUTIL).a
# $(CC) $(CFLAGS) -L$(LIBTEMPLATEDIR) -o $@ test.c -l$(LIBTEMPLATE) -l$(LIBUTIL)
$(CASTPROG): buildcast.o $(OBJS) $(LIBAGREPDIR)/lib$(LIBAGREP).a $(LIBTEMPLATEDIR)/lib$(LIBTEMPLATE).a $(LIBTEMPLATEDIR)/lib$(LIBUTIL).a
$(CC) $(CFLAGS) -L$(LIBAGREPDIR) -L$(LIBTEMPLATEDIR) -o $(CASTPROG) buildcast.o $(OBJS) -l$(LIBAGREP) -l$(LIBTEMPLATE) -l$(LIBUTIL)
cp $(CASTPROG) $(BINDIR)/.
$(NOTSCASTPROG): buildcast.o $(OBJS) $(LIBAGREPDIR)/lib$(LIBAGREP).a
$(CC) $(CFLAGS) -L$(LIBAGREPDIR) -o $(CASTPROG) buildcast.o $(OBJS) -l$(LIBAGREP)
cp $(CASTPROG) $(BINDIR)/.
$(PROG): glimpse.o $(OBJS) $(LIBAGREPDIR)/lib$(LIBAGREP).a $(LIBTEMPLATEDIR)/lib$(LIBTEMPLATE).a $(LIBTEMPLATEDIR)/lib$(LIBUTIL).a
$(CC) $(CFLAGS) -L$(LIBAGREPDIR) -L$(LIBTEMPLATEDIR) -o $(PROG) glimpse.o $(OBJS) -l$(LIBAGREP) -l$(LIBTEMPLATE) -l$(LIBUTIL)
cp $(PROG) $(BINDIR)/.
$(NOTSPROG): glimpse.o $(OBJS) $(LIBAGREPDIR)/lib$(LIBAGREP).a
$(CC) $(CFLAGS) -L$(LIBAGREPDIR) -o $(PROG) glimpse.o $(OBJS) -l$(LIBAGREP)
cp $(PROG) $(BINDIR)/.
$(LIBTEMPLATEDIR)/lib$(LIBTEMPLATE).a:
cd $(TEMPLATEDIR) ; $(MAKE) -f Makefile.alpha
$(LIBTEMPLATEDIR)/lib$(LIBUTIL).a:
cd $(TEMPLATEDIR) ; $(MAKE) -f Makefile.alpha
$(LIBAGREPDIR)/lib$(LIBAGREP).a:
cd $(AGREPDIR) ; $(MAKE) -f Makefile.alpha
region.o: region.c region.h
$(CC) -c -DSTRUCTURED_QUERIES=$(STRUCTURED_QUERIES) $(CFLAGS) region.c
getword.o: getword.c
$(CC) -c $(CFLAGS) getword.c
dir.o: dir.c
$(CC) -c $(CFLAGS) dir.c
lib.o: lib.c
$(CC) -c $(CFLAGS) lib.c
partition.o: partition.c
$(CC) -c $(CFLAGS) partition.c
glimpse.o: glimpse.c glimpse.h region.h
$(CC) -c $(CFLAGS) -DBUILDCAST=0 glimpse.c
buildcast.o: glimpse.c glimpse.h region.h
cp glimpse.c buildcast.c
$(CC) -c $(CFLAGS) -DBUILDCAST=1 -o buildcast.o buildcast.c
io.o: io.c
$(CC) -c $(CFLAGS) io.c
build_in.o: build_in.c
$(CC) -c $(CFLAGS) build_in.c
filetype.o: filetype.c
$(CC) -c $(CFLAGS) filetype.c
simpletest.o: simpletest.c
$(CC) -c $(CFLAGS) simpletest.c
memlook.o: memlook.c
$(CC) -c $(CFLAGS) memlook.c
clean:
-rm -f $(OBJS) glimpse.o buildcast.o buildcast.c core a.out $(PROG) $(CASTPROG)
$(OBJS): glimpse.h region.h